package com.yunxi.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "sharding.jdbc.datasource.ds-master")
@Data
//@PropertySource("classpath:/application.properties")
//不用这个注解，默认就是加载application.properties资源文件
public class ReadDataSource {

    private String type;
    private String driverClassName;
    private String url;
    private String username;
    private String password;
}
